package merry;

/**
 * Created with IntelliJ IDEA.
 * User: happyiu
 * Date: 2021-12-16
 * Time: 0:27
 * Description:
 */


import javax.swing.JFrame;

public class MyFrame extends JFrame{
    MyPanel p ;
    MyFrame() {
        p = new MyPanel() ;
        add(p) ;
        setBounds(400, 200, 800, 800) ;
        setVisible(true) ;
        validate() ;
        setDefaultCloseOperation(MyFrame.EXIT_ON_CLOSE) ;
    }
}


